<template>
  <div class="fourth">
    <div class="fourth-top"></div>
    <div class="pink" v-for="(item, index) in list" :key="index">
      <div class="top">
        <img :src="item.img" alt="" />
        <p>{{ item.user }}</p>
        <van-rate v-model="item.value" allow-half color="#ffd21e" :size="15" />
      </div>
      <p>{{ item.evaluate }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          id: 1,
          img: require("@/assets/Di/椭圆5.png"),
          user: "用户娇*评价",
          evaluate: "很快,咨询解答很有用",
          value: 5,
        },
        {
          id: 2,
          img: require("@/assets/Di/椭圆5.png"),
          user: "用户白*评价",
          evaluate: "律师好评，非常专业，非常棒的律师",
          value: 5,
        },
        {
          id: 3,
          img: require("@/assets/Di/椭圆5.png"),
          user: "用户李*评价",
          evaluate: "回复很及时，问答接待清晰，软件操作简单",
          value: 4.5,
        },
      ],
    };
  },
};
</script>


<style scoped lang="scss">
.fourth {
  width: 100%;
  height: 6.76rem;
  border-radius: 0.3rem;
  background-color: white;
  position: relative;
  top: -0.3rem;
  margin-bottom: 1.5rem;
  .fourth-top {
    width: 6.86rem;
    height: 1.44rem;
    margin: 0.2rem auto;
    background-image: url(@/assets/Di/组21.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0.06rem -45px;
  }
  .pink {
    width: 6.86rem;
    height: 1.44rem;
    background-color: #fff9ef;
    margin: 0.2rem auto;
    border-radius: 0.2rem;
    padding-left: 0.34rem;
    .top {
      display: flex;
      padding-top: 0.3rem;
      img {
        width: 0.35rem;
        height: 0.35rem;
        margin-right: 0.1rem;
      }
      p {
        width: 4rem;
        font-size: 0.24rem;
        color: #999999;
        margin: 0;
      }
    }
    p {
      color: #333333;
      font-size: 0.26rem;
      margin-top: 0.23rem;
    }
  }
}
</style>